import request from "@/utils/http"; // 修改导入语句

// 获取用户信息
export function getUserList() {
	return request({
		url: "/api/user/get/login",
		method: "GET"
	});
}

// 用户登录
export function userLogin(data) {
	return request({
		url: "/api/user/login",
		method: "POST",
		data
	});
}

// 用户注册
export function userRegister(data) {
	return request({
		url: "/api/user/register",
		method: "POST",
		data
	});
}

// 退出登录
export function userLogout() {
	return request({
		url: "/api/user/logout",
		method: "POST"
	});
}
